#!/bin/bash
echo "0.Install git!"
echo "1.One key push!"
echo "2.Clone git project!"
echo "3.Add all file!"
echo "4.Commit change!"
echo "5.Push change!"
read -p "Choose Number:" num
case $num in
 "0")
  yum update
  yum -y install git
 ;;
 "1")
  git add -A
  read -p "Commit message:" msg
  git commit -m "$msg"
  git push origin
 ;;
 "2")
  read -p "Git address:" addr
  git clone $addr
 ;;
 "3")
  git add -A
 ;;
 "4")
  read -p "Commit message:" msg
  git commit -m "$msg"
 ;;
 "5")
  git push origin
 ;;
 *)
 ;;
esac
